Optimal. Leaf size=90 \[ \frac {x^2}{2}-\frac {1}{2} \sqrt {\frac {1}{5} \left (9+4 \sqrt {5}\right )} \tanh ^{-1}\left (\sqrt {\frac {2}{3+\sqrt {5}}} x^2\right )+\frac {1}{2} \sqrt {\frac {1}{5} \left (9-4 \sqrt {5}\right )} \tanh ^{-1}\left (\sqrt {\frac {1}{2} \left (3+\sqrt {5}\right )} x^2\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 90, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {1373, 1136,
1180, 213} \begin {gather*} \frac {x^2}{2}-\frac {1}{2} \sqrt {\frac {1}{5} \left (9+4 \sqrt {5}\right )} \tanh ^{-1}\left (\sqrt {\frac {2}{3+\sqrt {5}}} x^2\right )+\frac {1}{2} \sqrt {\frac {1}{5} \left (9-4 \sqrt {5}\right )} \tanh ^{-1}\left (\sqrt {\frac {1}{2} \left (3+\sqrt {5}\right )} x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 213
Rule 1136
Rule 1180
Rule 1373
Rubi steps
\begin {align*} \int \frac {x^9}{1-3 x^4+x^8} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {x^4}{1-3 x^2+x^4} \, dx,x,x^2\right )\\ &=\frac {x^2}{2}-\frac {1}{2} \text {Subst}\left (\int \frac {1-3 x^2}{1-3 x^2+x^4} \, dx,x,x^2\right )\\ &=\frac {x^2}{2}-\frac {1}{20} \left (-15+7 \sqrt {5}\right ) \text {Subst}\left (\int \frac {1}{-\frac {3}{2}+\frac {\sqrt {5}}{2}+x^2} \, dx,x,x^2\right )+\frac {1}{20} \left (15+7 \sqrt {5}\right ) \text {Subst}\left (\int \frac {1}{-\frac {3}{2}-\frac {\sqrt {5}}{2}+x^2} \, dx,x,x^2\right )\\ &=\frac {x^2}{2}-\frac {1}{2} \sqrt {\frac {1}{5} \left (9+4 \sqrt {5}\right )} \tanh ^{-1}\left (\sqrt {\frac {2}{3+\sqrt {5}}} x^2\right )+\frac {1}{20} \sqrt {180-80 \sqrt {5}} \tanh ^{-1}\left (\sqrt {\frac {1}{2} \left (3+\sqrt {5}\right )} x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 103, normalized size = 1.14 \begin {gather*} \frac {1}{20} \left (10 x^2+\left (-5+2 \sqrt {5}\right ) \log \left (-1+\sqrt {5}-2 x^2\right )+\left (5+2 \sqrt {5}\right ) \log \left (1+\sqrt {5}-2 x^2\right )+\left (5-2 \sqrt {5}\right ) \log \left (-1+\sqrt {5}+2 x^2\right )-\left (5+2 \sqrt {5}\right ) \log \left (1+\sqrt {5}+2 x^2\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 67, normalized size = 0.74
method | result | size |
default | \(\frac {x^{2}}{2}+\frac {\ln \left (x^{4}-x^{2}-1\right )}{4}-\frac {\sqrt {5}\, \arctanh \left (\frac {\left (2 x^{2}-1\right ) \sqrt {5}}{5}\right )}{5}-\frac {\ln \left (x^{4}+x^{2}-1\right )}{4}-\frac {\arctanh \left (\frac {\left (2 x^{2}+1\right ) \sqrt {5}}{5}\right ) \sqrt {5}}{5}\) | \(67\) |
risch | \(\frac {x^{2}}{2}+\frac {\ln \left (2 x^{2}-\sqrt {5}-1\right )}{4}+\frac {\ln \left (2 x^{2}-\sqrt {5}-1\right ) \sqrt {5}}{10}+\frac {\ln \left (2 x^{2}+\sqrt {5}-1\right )}{4}-\frac {\ln \left (2 x^{2}+\sqrt {5}-1\right ) \sqrt {5}}{10}-\frac {\ln \left (2 x^{2}-\sqrt {5}+1\right )}{4}+\frac {\ln \left (2 x^{2}-\sqrt {5}+1\right ) \sqrt {5}}{10}-\frac {\ln \left (2 x^{2}+\sqrt {5}+1\right )}{4}-\frac {\ln \left (2 x^{2}+\sqrt {5}+1\right ) \sqrt {5}}{10}\) | \(131\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.95, size = 92, normalized size = 1.02 \begin {gather*} \frac {1}{2} \, x^{2} + \frac {1}{10} \, \sqrt {5} \log \left (\frac {2 \, x^{2} - \sqrt {5} + 1}{2 \, x^{2} + \sqrt {5} + 1}\right ) + \frac {1}{10} \, \sqrt {5} \log \left (\frac {2 \, x^{2} - \sqrt {5} - 1}{2 \, x^{2} + \sqrt {5} - 1}\right ) - \frac {1}{4} \, \log \left (x^{4} + x^{2} - 1\right ) + \frac {1}{4} \, \log \left (x^{4} - x^{2} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 114 vs.
\(2 (50) = 100\).
time = 0.35, size = 114, normalized size = 1.27 \begin {gather*} \frac {1}{2} \, x^{2} + \frac {1}{10} \, \sqrt {5} \log \left (\frac {2 \, x^{4} + 2 \, x^{2} - \sqrt {5} {\left (2 \, x^{2} + 1\right )} + 3}{x^{4} + x^{2} - 1}\right ) + \frac {1}{10} \, \sqrt {5} \log \left (\frac {2 \, x^{4} - 2 \, x^{2} - \sqrt {5} {\left (2 \, x^{2} - 1\right )} + 3}{x^{4} - x^{2} - 1}\right ) - \frac {1}{4} \, \log \left (x^{4} + x^{2} - 1\right ) + \frac {1}{4} \, \log \left (x^{4} - x^{2} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 170 vs.
\(2 (63) = 126\).
time = 0.25, size = 170, normalized size = 1.89 \begin {gather*} \frac {x^{2}}{2} + \left (- \frac {1}{4} - \frac {\sqrt {5}}{10}\right ) \log {\left (x^{2} - \frac {47}{8} - \frac {47 \sqrt {5}}{20} - 120 \left (- \frac {1}{4} - \frac {\sqrt {5}}{10}\right )^{3} \right )} + \left (- \frac {1}{4} + \frac {\sqrt {5}}{10}\right ) \log {\left (x^{2} - \frac {47}{8} - 120 \left (- \frac {1}{4} + \frac {\sqrt {5}}{10}\right )^{3} + \frac {47 \sqrt {5}}{20} \right )} + \left (\frac {1}{4} - \frac {\sqrt {5}}{10}\right ) \log {\left (x^{2} - \frac {47 \sqrt {5}}{20} - 120 \left (\frac {1}{4} - \frac {\sqrt {5}}{10}\right )^{3} + \frac {47}{8} \right )} + \left (\frac {\sqrt {5}}{10} + \frac {1}{4}\right ) \log {\left (x^{2} - 120 \left (\frac {\sqrt {5}}{10} + \frac {1}{4}\right )^{3} + \frac {47 \sqrt {5}}{20} + \frac {47}{8} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.33, size = 97, normalized size = 1.08 \begin {gather*} \frac {1}{2} \, x^{2} + \frac {1}{10} \, \sqrt {5} \log \left (\frac {{\left | 2 \, x^{2} - \sqrt {5} + 1 \right |}}{2 \, x^{2} + \sqrt {5} + 1}\right ) + \frac {1}{10} \, \sqrt {5} \log \left (\frac {{\left | 2 \, x^{2} - \sqrt {5} - 1 \right |}}{{\left | 2 \, x^{2} + \sqrt {5} - 1 \right |}}\right ) - \frac {1}{4} \, \log \left ({\left | x^{4} + x^{2} - 1 \right |}\right ) + \frac {1}{4} \, \log \left ({\left | x^{4} - x^{2} - 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.33, size = 90, normalized size = 1.00 \begin {gather*} \frac {x^2}{2}-\mathrm {atanh}\left (\frac {64\,x^2}{64\,\sqrt {5}+192}+\frac {64\,\sqrt {5}\,x^2}{64\,\sqrt {5}+192}\right )\,\left (\frac {\sqrt {5}}{5}+\frac {1}{2}\right )-\mathrm {atanh}\left (\frac {64\,x^2}{64\,\sqrt {5}-192}-\frac {64\,\sqrt {5}\,x^2}{64\,\sqrt {5}-192}\right )\,\left (\frac {\sqrt {5}}{5}-\frac {1}{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________